'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    // ctx.body = 'hi, egg';
    await ctx.render('index.html');
  }
  async list() {
    const { ctx } = this;
    const result = await this.app.mysql.get('学生表', { id: 1 });
    ctx.body = result;
  }
}

module.exports = HomeController;
